import UIKit

class AlbumImageExif: NSObject {
    // 颜色空间
    var colorSpace = 0
    
    // 组件的配置
    var componentsConfiguration: NSArray?
    
    // EXIF版本
    var exifVersion: NSArray?
    
    // Flash图片版
    var flashPixVersion: NSArray?
    
    // 像素X尺寸
    var pixelXDimension = 0
    
    // 像素Y尺寸
    var pixelYDimension = 0
    
    // 场景捕获类型
    var sceneCaptureType = 0
    
    init(dict: NSDictionary?) {
        colorSpace = (dict?["ColorSpace"] as? Int) ?? -1
        componentsConfiguration = dict?["ComponentsConfiguration"] as? NSArray
        exifVersion = dict?["ExifVersion"] as? NSArray
        flashPixVersion = dict?["FlashPixVersion"] as? NSArray
        pixelXDimension = (dict?["PixelXDimension"] as? Int) ?? -1
        pixelYDimension = (dict?["PixelYDimension"] as? Int) ?? -1
        sceneCaptureType = (dict?["SceneCaptureType"] as? Int) ?? -1
        
        // print("AlbumImageExif:   colorSpace:\(colorSpace), componentsConfiguration:\(componentsConfiguration?.count), exifVersion:\(exifVersion?.count), flashPixVersion:\(flashPixVersion?.count), pixelXDimension:\(pixelXDimension), pixelYDimension:\(pixelYDimension), sceneCaptureType:\(sceneCaptureType)")
    }
    
    deinit {
        // print("Album -- AlbumImageExif: \(colorSpace) deinit")
    }
}
